package com.lenovo.translatetext.entity;

import java.io.Serializable;
import java.util.List;

/**
 * @ProjectName: TranslateText
 * @Package: com.lenovo.translatetext.entity
 * @ClassName: TranslatedInfo
 * @Description: TranslatedInfo类作用描述
 * @Author: kgzhou
 * @CreateDate: 2019/4/19 10:33
 * @UpdateUser: kgzhou
 * @UpdateDate: 2019/4/19 10:33
 * @UpdateRemark: 更新说明：
 * @Version: 1.0
 */
public class TranslatedInfo implements Serializable {

    private String from;
    private String to;
    private List<trans_result> trans_result;
    private String error_code;
    private String error_msg;


    public String getError_code() {
        return error_code;
    }

    public void setError_code(String error_code) {
        this.error_code = error_code;
    }

    public String getError_msg() {
        return error_msg;
    }

    public void setError_msg(String error_msg) {
        this.error_msg = error_msg;
    }

    public String getFrom() {
        return from;
    }

    public String getTo() {
        return to;
    }


    public void setFrom(String from) {
        this.from = from;
    }

    public void setTo(String to) {
        this.to = to;
    }

    public List<TranslatedInfo.trans_result> getTrans_result() {
        return trans_result;
    }

    public void setTrans_result(List<TranslatedInfo.trans_result> trans_result) {
        this.trans_result = trans_result;
    }

    @Override
    public String toString() {
        return "TranslatedInfo{" +
                "from='" + from + '\'' +
                ", to='" + to + '\'' +
                ", trans_result=" + trans_result +
                '}';
    }

    public class trans_result implements Serializable {

        private String src;
        private String dst;

        public String getSrc() {
            return src;
        }

        public String getDst() {
            return dst;
        }

        public void setSrc(String src) {
            this.src = src;
        }

        public void setDst(String dst) {
            this.dst = dst;
        }

        @Override
        public String toString() {
            return "trans_result{" +
                    "src='" + src + '\'' +
                    ", dst='" + dst + '\'' +
                    '}';
        }

    }


}
